photo finish

Noun
  1. in general, any very close finish; in particular, a finish of a race in which the contestants are so close together that the winner must be determined from a photograph taken at the instant of finishing
photo finish
Two horses cross the finish line in a photo finish.